package com.bjpowernode.handler;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MyInintHandler implements InvocationHandler {

    Object object;

    public MyInintHandler(Object object) {
        this.object = object;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Object res;
        res=method.invoke(object,args);
        if(res!=null){
            int number= (int) res;
            number=number+100;
            System.out.println("加工后打印报告数目："+number);
        }
        return res;
    }

}

